-- Module instantiation
local cjson = require "cjson"
local cjson2 = cjson.new()
local cjson_safe = require "cjson.safe"

-- Translate Lua value to/from JSON

local value={a=1,b=2}
text = cjson.encode(value)
print(text)
value = cjson.decode(text)
print(value.a)
print(value.b)








-----详尽使用 https://www.kyne.com.au/~mark/software/lua-cjson-manual.html ----

